package com.example.rabbitextensionsdemo.config;

import com.example.rabbitextensionsdemo.constant.Constants;
import org.springframework.amqp.core.*;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class TransConfig {
    // 延时队列插件
    @Bean("transQueue")
    public Queue transQueue() {
        return QueueBuilder.durable("trans.queue").build();
    }
}
